//
//  FFBaseWebViewController.m
//  KeChuangManage
//
//  Created by shang on 2016/11/30.
//  Copyright © 2016年 shang. All rights reserved.
//

#import "FFBaseWebViewController.h"

@interface FFBaseWebViewController ()<UIWebViewDelegate>
@property (weak, nonatomic) IBOutlet UIWebView *webviewBase;

@end

@implementation FFBaseWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    NSURLRequest *requestUrl = [NSURLRequest requestWithURL:[NSURL URLWithString:self.weburl]];
    [self.webviewBase loadRequest:requestUrl];
}

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
     NSString *title = [webView stringByEvaluatingJavaScriptFromString:@"document.title"];
    
    [self setNavTitleView:title viewController:self];
}

@end
